package org.example.sys.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.example.sys.entity.TSysMenu;
import org.example.sys.entity.TSysRoleMenu;

import java.util.List;

/**
 * 角色目录权限表(TSysRoleMenu)表数据库访问层
 * @author Calvin
 */
public interface TSysRoleMenuMapper extends BaseMapper<TSysRoleMenu> {

    List<TSysMenu> listMenuByUserId(@Param("userId") Long userId, @Param("menuType") Integer menuType);

    List<Object> listMenuByRoleIds(List<Integer> roleIds, Integer menuType);
}

